<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/wondershare/js/jquery.js"></script> 
<script type="text/javascript">
var did,pid;
$(function(){
	var url = document.location.href;
	did = url.split('=')[1];
	
	$.getJSON('../product_review.php?action=get_reply&r='+Math.random(),{did:did},function(data){
		$("#reply").val(data.reply);
		pid = data.pid;
	})
})

function reply( dialog ){
	$.post('../product_review.php?action=set_reply',{did:did,pid:pid,reply:$("#reply").val()},function(data){
		$("body").append( data );
		alert("回复成功！");	
		dialog.close();
	})
}
</script>
</head>

<body>
<table cellpadding="2" cellspacing="1" width="100%" class="list-div" style="margin-top:3px;">
<tr><td><textarea id="reply" name="reply" style="width:100%;height:156px;border:none;"></textarea></td></tr>
</table>
</body>
</html>
